package com.smmisia.article.entity.convetor;

import com.smmisia.article.entity.Comment;
import com.smmisia.article.vo.CommentVO;
import org.mapstruct.Mapper;
import org.mapstruct.NullValueCheckStrategy;
import org.mapstruct.factory.Mappers;

@Mapper(nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS)
public interface CommentConvertor {

    CommentConvertor INSTANCE = Mappers.getMapper(CommentConvertor.class);

    public static final int DEFAULT_MIN_SALE_TIME = 60;

    /**
     * 转换评论VO
     * @param comment
     * @return
     */
    public CommentVO mapToCommentVO(Comment comment);


}
